#include<iostream>
#include<string>
using std::string;
using std::cin; 
using std::cout;
using std::endl;
int main() {
	string s1, s2;
	cin >> s1 >> s2;
	if (s1 == s2)
		cout << "s1 is equal to s2" << endl;
	else {
		cout << "s1 is not equal to s2" << endl;
		if (s1 > s2)
			cout << s1 << endl;
		else
			cout << s2 << endl;
		if (s1.size() > s2.size())
			cout << s1 << endl;
		else
			cout << s2 << endl;
	}
	cout << s1 + s2 << endl;


	system("pause");
	return 0;
 }